package mode.adapter.objectadapter;

/**
 * 对象适配器测试
 *
 * @author xjx
 * @date 2023/7/20 15:08
 */
public class MainTest {
    public static void main(String[] args) {
        //适配220V--5V
        PowerAdapter adapter = new PowerAdapter(new AC220());
        adapter.output5();

        //适配380V--5V
        PowerAdapter adapter1 = new PowerAdapter(new AC380());
        adapter1.output5();
    }
}
